Add Layout
Path
http://{supOS ip:port}/open-api/p/compose/v2/pages/{pageId}/layouts
pageId: Required.
Request body
{
"name": "3d8849-0", //required
"description": "",
"context": "{}", //JSON format
"kind": "free", //layout. "free" means free layout, "new" means grid layout
"appId": "App_bac090d688004de9bf927b9ff66bfca7"
}
Response
- 200: Successful.
{
"location": "api/layouts/Car001" //resource URL of the application instance
}
- 400
- 400: Request failed.
- 401: Permission authentication failed.
- 404: Corresponding data not found.
- 409: Request conflicted. The Specified name exists, cannot add.
- 500: System error.
Edit Layout Information
Path
http://{supOS ip:port}/open-api/p/compose/v2/pages/layouts/{layoutId}
layoutId: Required.
Request body
{
"description": "layout",
"context": "{}" //JSON format
}
Response
- 201: Request accepted and processed.
- 202: Request accepted but not fully processed.
- 400
- 400: Request failed.
- 401: Permission authentication failed.
- 404: Corresponding data not found.
- 409: Request conflicted. The Specified name exists, cannot add.
- 500: System error.